<template>
	<view class="tabbarpage-container">
		<!--胶囊上方-->
		<div :style="{'padding-top': statusBarHeight}">
			
		</div>
		<!--胶囊-->
		<div class="head-container" :style="{'height': capsuleHeight}">
			<wd-icon @click="jumpBack" color="#fff" name="thin-arrow-left" size="18px"></wd-icon>
			<div>使用说明</div>
			<div style="width: 18px;"></div>
		</div>
		<!--主体-->
		<div class="tabbarpage-body scroll-container" >
			<div class="dark-purple-card instruction">
				{{instruction}}
			</div>
		</div>
	</view>
</template>

<script setup>
	import TabbarCom from '@/components/TabbarCom.vue'
	import { ref } from 'vue';
	import { globalProps } from '@/js/global.js'
	import { preset } from '@/js/preset.js'
	
	const statusBarHeight = ref(globalProps.statusBarHeight)
	const capsuleHeight = ref(globalProps.capsuleHeight)
	const jumpBack = ()=>{
		uni.navigateBack()
	}
	const instruction = ref(preset.mineInstruction);
</script>

<style>
	@import "@/css/global.css";
	@import "@/css/animation.css";
	.head-container{
		display: flex;
		align-items: center;
		margin: 0 16px;
		justify-content: space-between;
		color: #fff;
		width: calc(100% - 32px);
		letter-spacing: 1px;
	}
	.scroll-container{
		padding: 16px 8px 8px 8px;
		display: flex;
		flex-direction: column;
		overflow-x: hidden;
		overflow-y: scroll;
	}
	.scroll-container .instruction{
		width: calc(100% - 32px);
		padding: 8px;
		color: #fff;
		font-size: 14px;
		letter-spacing: 1px;
		border-radius: 8px;
		white-space: pre-line;
		word-break: break-all;
	}
	
	
</style>
